<?php
define('INSTALL_CONTRIB_INSTALLER','Install Contrib Installer');
define('INTRO','<br>Choose a directory and press the Button. Contrib Installer will install yourself.
<br><b>CIP.NET.UA Advice:</b><br>
While Contrib Installer installing all files and database tables will be backuped.
<br>
If you want restore your shop you should remove Contrib Installer and all files and database will be restored.<br>
You will get a shop without any changes made after you have pressed button on this page.');
define('CONTRIB_INSTALLER_NAME','Contrib_Installer');
define('CONTRIB_INSTALLER_VERSION','2.2');
define('CONFIG_FILENAME','install.xml');
define('INIT_CONTRIB_INSTALLER', 'contrib_installer.php');
define('INIT_CONTRIB_INSTALLER_TEXT', 'Initialize Contrib Installer');
define('CONTRIB_INSTALLER_TEXT', 'Contrib Installer');
define('ALL_CHANGES_WILL_BE_REMOVED_TEXT', 'All changes that was already made will be removed.');
define('AUTHOR_TEXT', 'Author: ');
define('FROM_INSTALL_FILE_TEXT', 'From install file: ');
define('INSTALLING_CONTRIBUTION_TEXT', 'Installing Contribution: ');
define('REMOVING_CONTRIBUTION_TEXT', 'Removing Contribution: ');
define('CANT_CREATE_DIR_TEXT', 'Couldn\'t create directory: ');
define('CANT_WRITE_TO_DIR_TEXT', 'Can\'t write to directory: ');
define('COLUDNT_REMOVE_DIR_TEXT', 'Couldn\'t remove directory: ');
define('REMOVING_DIRS_IN_BOLD', 'Removing directory(s) in bold: ');
define('CREATING_DIRS_IN_BOLD', 'Creating directory(s) in bold: ');
define('WRITE_PERMISSINS_NEEDED_TEXT', 'I need write permission for: ');
define('ADD_CODE_IN_FILE_TEXT', 'Add code in file: ');
define('EXPRESSION_TEXT', 'Expression: ');
define('AFTER_EXPRESSION_ADD_TEXT', 'After expression add: ');
define('ORIGINAL_AFTER_EXPRESSION_ADD_TEXT', 'Original after expression add: ');
define('UNDO_ADD_CODE_IN_FILE_TEXT', 'Undo add code in file: ');
define('ORIGINAL_EXPRESSION_TEXT', 'Original expression: ');
define('ORIGINAL_REPLACE_WITH_TEXT', 'Original replace with: ');
define('CONFLICT_IN_FILE_TEXT', 'There is a conflict in file: ');
define('CANT_READ_FILE', 'File doesn\'t exist: ');
define('REMOVING_FILE_TEXT', 'Removing file: ');
define('COULDNT_REMOVE_FILE_TEXT', 'Couldn\'t remove file: ');
define('COULDNT_COPY_TO_TEXT', 'Couldn\'t copy file: ');
define('COULDNT_FIND_TEXT', 'Couldn\'t find ');
define('CONTRIBUTION_DIR_TEXT', 'Contribution Directory<br>(where contributions are located): ');
define('NO_CONTRIBUTION_NAME_TEXT', 'No contribution name.');
define('NO_FILE_TAG_IN_ADDFILE_SECTION_TEXT', 'No file tag.');
define('NAME_OF_FILE_MISSING_IN_ADDFILE_SECTION_TEXT', 'Name of file missing.');
define('NO_QUERY_TAG_IN_SQL_SECTION_TEXT', 'No query tag.');
define('NO_REMOVE_QUERY_NESSESARY_FOR_SQL_QUERY_TEXT', 'No remove query necessary for SQL query: ');
define('RUN_SQL_REMOVE_QUERY_TEXT', 'Run SQL remove query: ');
define('RUN_SQL_QUERY_TEXT', 'Run SQL query: ');
define('NO_DIR_TAG_IN_MAKE_DIR_SECTION_TEXT', 'No dir tag.');
define('NAME_OF_DIR_MISSING_IN_MAKE_DIR_SECTION_TEXT', 'Name of dir missing.');
define('NAME_OF_PARENT_DIR_MISSING_IN_MAKE_DIR_SECTION_TEXT', 'Name of parent_dir missing.');
define('ERROR_IN_ADDCODE_SECTION_TEXT', 'Error in <addcode>');
define('COPYING_TO_TEXT', 'Copying to: ');
define('FIND_REPLACE_IN_FILE_TEXT', 'Find &amp; replace in file: ');
define('ERROR_IN_FINDREPLACE_SECTION_TEXT', 'Error in <findreplace>');
define('UNDO_FIND_REPLACE_IN_FILE_TEXT', 'Undo find &amp; replace in file: ');
define('REPLACE_WITH_TEXT', 'Replace with: ');
define('ON_LINE_TEXT', 'On line ');
define('UPDATE_BUTTON_TEXT', 'Update');
define('IN_THE_FILE_TEXT', 'in the file: ');
define('INSTALL_XML_FILE_IS_VALID_TEXT', 'File install.xml is valid.');
define('PERMISSIONS_IS_VALID_TEXT', 'Permissions is OK.');
define('INSTALLATION_COMPLETE_TEXT', 'Installed.');
define('REMOVING_COMPLETE_TEXT', 'Removed.');
define('COMMENTS_TEXT', 'Comments: ');
define('CHECKING_CONFIG_FILE_TEXT', 'Checking config file: ');
define('CHECKING_PERMISSIONS_TEXT', 'Checking permissions: ');
define('CHECKING_CONFLICTS_TEXT', 'Checking conflicts:');
define('RUNNING_TEXT', 'Log of Contrib Installer Package (CIP) running: ');
define('STATUS_TEXT', 'Status: ');
define('NO_CONFLICTS_TEXT', 'No conflicts.');
define('PHP_INSTALL_TEXT', 'PHP install code: ');
define('PHP_REMOVE_TEXT', 'PHP remove code: ');
define('PHP_RUNTIME_MESSAGES_TEXT', 'PHP runtime messages: ');
define('NO_INSTALL_TAG_IN_PHP_SECTION_TEXT', 'No INSTALL tag in php section.');
define('NO_REMOVE_TAG_IN_PHP_SECTION_TEXT', 'No REMOVE tag in php section.');
define('FILE_EXISTS_TEXT', 'File exists');
define('FILE_NOT_EXISTS_TEXT', 'File NOT exists');
define('LINK_EXISTS_TEXT', 'Link exists.');
define('NAME_OF_FILE_MISSING_IN_DEL_FILE_SECTION_TEXT', 'Name of file missing.');
define('MD5_SUM_UPDATED_TEXT', 'MD5 sum updated.');
define('MD5_SUM_REMOVED_TEXT', 'MD5 sum removed.');
define('FILE_EXISTS_AND_WAS_CHANGED_TEXT', 'File exists and was changed by another CIP. You should: <br>
- backup this file,<br>
- remove this file,<br>
- install this CIP,<br>
- find all changes in file that you backup (they marked with comments),<br>
- apply all changes from file that you backup to file installed by this CIP,<br>
- test. <br>');
define('ERROR_COULD_NOT_OPEN_XML', 'Could not open XML input from: ');
define('ERROR_XML', 'XML error: ');
define('TEXT_AT_LINE', ' at line ');
define('TEXT_NOT_ORIGINAL_TEXT', 'Not original text in find-section. ');
define('TEXT_HAVE_BEEN_FOUND', 'Have been found ');
define('TEXT_TIMES', ' times!!!');
define('TEXT_HOW_TO_RESOVLE_CONFLICTS', '
This error message means that CIP (Contrib Installer Package) that you are installing tryes to change lines in file that was changed by another CIP before.<br>
If file was changed by hand you will see a message that says "Can\'t find...".<br>
<br>
<b>What to do?</b><br>
<br>
1.Open file from osCommerce and find lines that installed CIP tryes to change. <br>
You can see a comments above and below this lines.<br>
In comments you can find information about CIP that added/changes this lines.<br>
2. If CIP that make changes before don\'t really needed - remove them and install your CIP.<br>
If needed - read #3.<br>
<br>
3. Make a copy of CIP that you want to install.<br>
4. Change install.xml from copy of CIP.<br>
Use file from osCommerce that must be changed for that.<br>
<br>
May be you will find useful to compare 2 files <br>
use <i>diff /.../one_file.php /.../other_file.php -bu > 1.txt</i><br>
where<br>
other_file.php - file from osCommerce that have a conflict<br>
one_file.php - file from clear osCommerce or just remove CIP that changed lines that your CIP tryes change too.<br>
5. Try to install your new CIP.<br>
6. If all works. Add your name in install.xml an section "credits" and upload on oscommerce site :-)<br>
<br>
or<br>
<br>
ask a help on Contrib Installer forum.<br>');
define('NO_COMMENTS_TAG_IN_DESCRIPTION_SECTION_TEXT', 'No comments tag in description section');
define('NO_CREDITS_TAG_IN_DESCRIPTION_SECTION_TEXT', 'No credits tag in description section');
define('NO_DETAILS_TAG_IN_DESCRIPTION_SECTION_TEXT', 'No details tag in description section');
define('NO_CONTRIB_REF_PARAMETER_IN_DETAILS_TAG_TEXT', 'No contrib_ref parameter in details tag');
define('NO_FORUM_REF_PARAMETER_IN_DETAILS_TAG_TEXT', 'No forum_ref parameter in details tag');
define('NO_CONTRIB_TYPE_PARAMETER_IN_DETAILS_TAG_TEXT', 'No contrib_type parameter in details tag');
define('NO_STATUS_PARAMETER_IN_DETAILS_TAG_TEXT', 'No status parameter in details tag');
define('NO_LAST_UPDATE_PARAMETER_IN_DETAILS_TAG_TEXT', 'No last_update parameter in details tag');
define('CHOOSE_A_CONTRIBUTION_TEXT', '
<a href="http://www.oscommerce.com/community?contributions=&search=Contrib+Installer&category=all" target=_blank">Search CIP\'s on osCommerce.org</a> or choose a contribution: ');
define('IMAGE_BUTTON_INSTALL', 'Install');
define('IMAGE_BUTTON_REMOVE', 'Remove');
?>